package com.xiashitech.agent.instrumentation.redis;

import com.xiashitech.agent.instrumentation.redis.redisson.XSRedissonRequest;
import lombok.*;

import java.util.List;
import java.util.Map;

@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class RedisData {
    private byte[] key;
    private byte[] field;
    private byte[] value;
    private Map<byte[], byte[]> map;
    private long time;
    @Builder.Default
    private Boolean isLogin = false;
    @Builder.Default
    private String redisOpetion = "";

    private List<Object> params;//针对redisson拦截时获取命令参数
    private XSRedissonRequest redissonRequest;
}
